﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_Admore.Aspx.cs" Inherits="Master_Admin_Admore" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>幻灯片广告管理</title>
    <link href="Css/Css.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 75px;
        }
    </style>
</head>
<body>
    <form runat="server">
    <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border" align="center">
        <tr>
            <td colspan="2" align="center" class="title">
                <strong>幻灯片广告管理(最大只能上传5张)</strong>
            </td>
        </tr>
        <tr class="tdbg">
            <td width="300" height="25" valign="middle">
                <strong>链接地址：</strong>
            </td>
            <td height="25">
                <asp:TextBox ID="Txt_PicName" runat="server" Width="192px" Text='http://'></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Txt_PicName"
                    Display="Dynamic" ErrorMessage="链接地址不能为空"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr class="tdbg">
            <td width="300" height="25" valign="middle">
                <strong>图片地址：</strong>
            </td>
            <td height="25">
                <asp:FileUpload ID="FileUpload1" runat="server" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="FileUpload1"
                    Display="Dynamic" ErrorMessage="请上传图片,图片只能为.JPG"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr class="tdbg">
            <td height="40" colspan="2" align="center">
                <input name="Action" type="hidden" id="Action" value="SaveModify">
                <asp:Button ID="btnSubmit" runat="server" Style="cursor: hand; background-color: #cccccc;
                    height: 20px;" Text="  确     定  " OnClick="btnSubmit_Click" />&nbsp;
            </td>
        </tr>
        <tr class="tdbg">
            <td colspan="2" align="center" style="color: Red;">
                注意:幻灯片广告只能上传JPG图片,上传其他类型会造成其他严重的后果;
            </td>
        </tr>
    </table>
    <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border" align="center">
        <asp:Repeater ID="Repeater1" runat="server" 
            onitemcommand="Repeater1_ItemCommand">
        <ItemTemplate>
        <tr class="tdbg">
            <td height="25" valign="middle" class="style1">
                <strong>图片管理：</strong>
            </td>
            <td height="25">
                &nbsp;<img src='<%=configInfo.InstallDir%><%#Eval("pictext") %>' />&nbsp;&nbsp;&nbsp;&nbsp;<asp:LinkButton CommandArgument='<%#Eval("id") %>' CausesValidation="false"  CommandName="delinfo"
                    ID="LinkButton1" OnClientClick="return confirm('您是否真的删除此张幻灯片图片?\r\n一旦删除将无法恢复!')" runat="server">删除</asp:LinkButton></td>
        </tr>
        </ItemTemplate>
        </asp:Repeater>
    </table>
    </form>
</body>
</html>
